ESP3D Lib  1.0
3D Printer WiFi Library
ESP_SD Class Reference

#include <sd_ESP32.h>

Public Member Functions

 ESP_SD ()
 
 ~ESP_SD ()
 
int8_t card_status ()
 
uint32_t card_total_space ()
 
uint32_t card_used_space ()
 
bool open (const char *path, bool readonly=true)
 
void close ()
 
int16_t write (const uint8_t *data, uint16_t len)
 
int16_t write (const uint8_t byte)
 
uint16_t read (uint8_t *buf, uint16_t nbyte)
 
int16_t read ()
 
uint32_t size ()
 
uint32_t available ()
 
bool exists (const char *path)
 
bool dir_exists (const char *path)
 
bool remove (const char *path)
 
bool rmdir (const char *path)
 
bool mkdir (const char *path)
 
bool isopen ()
 
String makepath83 (String longpath)
 
String makeshortname (String longname, uint8_t index=1)
 
bool openDir (String path)
 
bool readDir (char name[13], uint32_t *size, bool *isFile)
 

Public Attributes

bool * isFile
 

Detailed Description

Marlin 3D Printer Firmware Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Based on Sprinter and grbl. Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition at line 25 of file sd_ESP32.h.

Constructor & Destructor Documentation

◆ ESP_SD()

ESP_SD::ESP_SD ( )

◆ ~ESP_SD()

ESP_SD::~ESP_SD ( )

Member Function Documentation

◆ available()

uint32_t ESP_SD::available ( )

◆ card_status()

int8_t ESP_SD::card_status ( )

◆ card_total_space()

uint32_t ESP_SD::card_total_space ( )

◆ card_used_space()

uint32_t ESP_SD::card_used_space ( )

◆ close()

void ESP_SD::close ( )

◆ dir_exists()

bool ESP_SD::dir_exists ( const char *  path)

◆ exists()

bool ESP_SD::exists ( const char *  path)

◆ isopen()

bool ESP_SD::isopen ( )

◆ makepath83()

String ESP_SD::makepath83 ( String  longpath)

◆ makeshortname()

String ESP_SD::makeshortname ( String  longname,
uint8_t  index = 1 
)

◆ mkdir()

bool ESP_SD::mkdir ( const char *  path)

◆ open()

bool ESP_SD::open ( const char *  path,
bool  readonly = true 
)

◆ openDir()

bool ESP_SD::openDir ( String  path)

◆ read() [1/2]

int16_t ESP_SD::read ( )

◆ read() [2/2]

uint16_t ESP_SD::read ( uint8_t *  buf,
uint16_t  nbyte 
)

◆ readDir()

bool ESP_SD::readDir ( char  name[13],
uint32_t *  size,
bool *  isFile 
)

◆ remove()

bool ESP_SD::remove ( const char *  path)

◆ rmdir()

bool ESP_SD::rmdir ( const char *  path)

◆ size()

uint32_t ESP_SD::size ( )

◆ write() [1/2]

int16_t ESP_SD::write ( const uint8_t *  data,
uint16_t  len 
)

◆ write() [2/2]

int16_t ESP_SD::write ( const uint8_t  byte)

Member Data Documentation

◆ isFile

bool* ESP_SD::isFile

Definition at line 50 of file sd_ESP32.h.


The documentation for this class was generated from the following file: